<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title></title>
		<script>
			function distime() {
				var today = new Date();
				var yy = today.getFullYear();
				var yu = today.getMonth();
				var dd = today.getDate();
				var we=today.getDay();
				var hh = today.getHours();
				var mm = today.getMinutes();
				var ss = today.getSeconds();
				document.getElementById("mytime").innerHTML = "北京时间" + yy + "年" + (yu + 1) + "月" + dd + "日，星期" +we+","+ hh + ":" + mm + ":" + ss;
			}
			var now = setInterval("distime()", 1000);
		</script>
	</head>
	<body>
		<div id="mytime"></div>
	</body>

</html>